package pers.course.week7;
/* PRESET CODE BEGIN - NEVER TOUCH CODE BELOW */

import java.util.Scanner;

class Use_Che {
    public static void main(String[] args) {
        Bank bank = new Bank();

        Scanner s = new Scanner(System.in);
        int t = s.nextInt();
        s.nextLine();
        while (t-- > 0) {
            String f = s.next();
            String l = s.next();
            s.nextLine();
            bank.addCustomer(f, l);
        }
        for (int i = 0; i < bank.getNumOfCustomers(); i++) {
            Customer customer = bank.getCustomer(i);
            System.out.println("Customer [" + (i + 1) + "] is "
                    + customer.getLastName() + ", " + customer.getFirstName());
        }
    }
}

/* PRESET CODE END - NEVER TOUCH CODE ABOVE */
class Bank {
    int index = 0, a = 0;
    Customer Customer;
    String[] arrCustomer = new String[15];

    void addCustomer(String f, String l) {
        arrCustomer[index] = f + l;
        index++;
    }

    int getNumOfCustomers() {
        return index;
    }

    Customer getCustomer(int index) {
        a = index;
        return Customer;
    }
}

class Customer {
    String firstname, lastname;

    String getLastName() {
        return lastname;
    }

    String getFirstName() {
        return firstname;
    }
}
